/*获取菜单 by cjl*/
function getBarByParentAlias(Alias, ShowElementId)
{
	getMenu("/menu/AjaxBarAction.do", {'action' : Alias},ShowElementId);
}

//逗号分隔的菜单别名
function getBarByAlias(Alias, ShowElementId)
{
	getMenu("/menu/AjaxBarAssign.do", {'action' : Alias},ShowElementId);
}

function getMenu(url,data, ShowElementId)
{
	$.get(url, data || {}, function(data)
	{
		$("#"+ShowElementId).html(data);
	}, "html");
}

function autoMenuFlow_fn(fn,menuId,showChild){
	  eval(fn);
	  //var fnResult = eval(fn);
	  /*demo by cjl*/
	  /*
	  var obj=event.srcElement;
      obj.disabled=true;
	  setTimeout(function(){obj.disabled=false;},10000);
	  */
}
/*
function autoMenuFlow_url(url,menuId,showChild){
	  if(!showChild){
		  showBar({other:false});
	  }else{
		  getBarById(menuId,{other:false},{'success':function(){
			  if(url && url != null && url!= ""){
			     if(url.charAt(0) != '/'){
			          url = "/" + url;
			     }else{
			          url = "/" + url;
			     }
			   	 window.parent.workFrame.location = url;
			  }
		  }});
	  }
}
*/